import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import './styles/index.scss'
import router from '@/router/index'
import { useREM } from '@/utils/flexible.js'
import mLibs from './libs'
// 注册svg-icon
import 'virtual:svg-icons-register'
// vuex
import store from './store'
// 初始化主题
import useTheme from '@/utils/theme.js'
// 懒加载指令
import mDirectives from '@/directives/index.js'
import '@/premission.js'

useREM()
useTheme()

createApp(App).use(mLibs).use(store).use(router).use(mDirectives).mount('#app')
